<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ page import="de.openlaboratory.elib.model.library.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%
	Rendition rendition = (Rendition) request.getAttribute("param");
	String forwardAction = (String) request.getAttribute("elib_action");
%>

<form action="rendition" method="post">
           <h1>Edit Rendition</h1>
	<p>
		<label for="name">Rendition name</label>
		<input id="name" name="name" value="<%= rendition.getName() %>" />
		<span class="error">${messages.name}</span>
	</p>

	<p>
		<input type="hidden" name="action" value="EDIT" />
		<input type="hidden" name="id" value="<%= rendition.getId() %>" />
		<input type="hidden" name="elib_action" value="<%= request.getAttribute("elib_action") %>" />
		<input type="hidden" name="elib_ns" value="<%= Rendition.class %>" />
		<input type="submit">
		<span class="success">${messages.success}</span>
	</p>
</form>

<jsp:include page="/jsf/treeEvents.xhtml" />